package py.owner.log.format;

public class NumberLogFormat extends AbstractLogFormat {

    private static final String NUM_FORMAT = "number";
    /**
     * 数字
     */
    private double num;

    public static NumberLogFormat title(String title) {
        return new NumberLogFormat(title);
    }

    public NumberLogFormat num(double num) {
        this.num = num;
        return this;
    }

    private NumberLogFormat(String title) {
        super(title);
    }

    @Override
    protected String buildLogMsg() {
        return "[" + NUM_FORMAT + ":" + num + "]";
    }
}
